.class public Lcom/estrongs/fs/impl/local/f;
.super Ljava/lang/Object;
.source "LocalFileSystem.java"


# static fields
.field private static final a:Ljava/util/Random;

.field private static b:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map<",
            "Ljava/lang/String;",
            "Ljava/lang/Boolean;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .line 1
    new-instance v0, Ljava/util/Random;

    invoke-direct {v0}, Ljava/util/Random;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/local/f;->a:Ljava/util/Random;

    .line 2
    new-instance v0, Ljava/util/concurrent/ConcurrentHashMap;

    invoke-direct {v0}, Ljava/util/concurrent/ConcurrentHashMap;-><init>()V

    sput-object v0, Lcom/estrongs/fs/impl/local/f;->b:Ljava/util/Map;

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;J)Ljava/io/InputStream;
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-wide/16 v0, 0x0

    cmp-long v2, p2, v0

    if-nez v2, :cond_0

    .line 151
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/f;->b(Landroid/content/Context;Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p0

    return-object p0

    .line 152
    :cond_0
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v0

    const/16 v1, 0xa

    const/4 v2, 0x0

    .line 153
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_1

    const/4 v3, 0x0

    .line 154
    invoke-static {p0, v3}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result p0

    if-eqz p0, :cond_1

    .line 155
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p0

    return-object p0

    :cond_1
    const-string p0, "file://"

    .line 156
    invoke-virtual {p1, p0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_2

    .line 157
    new-instance p0, Ljava/io/File;

    new-instance v3, Ljava/net/URI;

    invoke-direct {v3, p1}, Ljava/net/URI;-><init>(Ljava/lang/String;)V

    invoke-direct {p0, v3}, Ljava/io/File;-><init>(Ljava/net/URI;)V

    invoke-virtual {p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p0

    goto :goto_0

    :cond_2
    const-string p0, "content://"

    .line 158
    invoke-virtual {p1, p0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_3

    return-object v2

    :cond_3
    move-object p0, p1

    .line 159
    :goto_0
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 160
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result p0

    if-nez p0, :cond_5

    if-eqz v0, :cond_4

    const/4 p0, 0x2

    .line 161
    new-instance p2, Les/u80$a;

    invoke-direct {p2, p1, v2}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {v0, p0, p2}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_4
    return-object v2

    .line 162
    :cond_5
    invoke-virtual {v3}, Ljava/io/File;->length()J

    move-result-wide p0

    cmp-long v4, p2, p0

    if-ltz v4, :cond_7

    if-eqz v0, :cond_6

    .line 163
    new-instance p0, Les/u80$a;

    const-string p1, "offset > filesize"

    invoke-direct {p0, p1, v2}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {v0, v1, p0}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_6
    return-object v2

    .line 164
    :cond_7
    new-instance p0, Lcom/estrongs/fs/impl/local/c;

    invoke-direct {p0, v3, p2, p3}, Lcom/estrongs/fs/impl/local/c;-><init>(Ljava/io/File;J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    move-exception p0

    if-eqz v0, :cond_8

    .line 165
    new-instance p1, Les/u80$a;

    invoke-virtual {p0}, Ljava/lang/Exception;->toString()Ljava/lang/String;

    move-result-object p2

    invoke-direct {p1, p2, p0}, Les/u80$a;-><init>(Ljava/lang/String;Ljava/lang/Exception;)V

    invoke-virtual {v0, v1, p1}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_8
    return-object v2
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;Z)Ljava/io/InputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    if-nez p2, :cond_0

    .line 166
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_0

    const/4 p2, 0x0

    .line 167
    invoke-static {p0, p2}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result p2

    if-eqz p2, :cond_0

    .line 168
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->e(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object p0

    goto :goto_0

    :cond_0
    const-string p2, "file://"

    .line 169
    invoke-virtual {p1, p2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_1

    .line 170
    new-instance p0, Ljava/io/FileInputStream;

    new-instance p2, Ljava/io/File;

    new-instance v0, Ljava/net/URI;

    invoke-direct {v0, p1}, Ljava/net/URI;-><init>(Ljava/lang/String;)V

    invoke-direct {p2, v0}, Ljava/io/File;-><init>(Ljava/net/URI;)V

    invoke-direct {p0, p2}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    goto :goto_0

    :cond_1
    const-string p2, "content://"

    .line 171
    invoke-virtual {p1, p2}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_2

    .line 172
    invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

    move-result-object p0

    .line 173
    invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object p1

    .line 174
    invoke-virtual {p0, p1}, Landroid/content/ContentResolver;->openInputStream(Landroid/net/Uri;)Ljava/io/InputStream;

    move-result-object p0

    goto :goto_0

    .line 175
    :cond_2
    new-instance p0, Ljava/io/FileInputStream;

    invoke-direct {p0, p1}, Ljava/io/FileInputStream;-><init>(Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-object p0

    :catch_0
    move-exception p0

    .line 176
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-virtual {p0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p0

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method public static a(Ljava/lang/String;J)Ljava/io/OutputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 177
    :try_start_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 178
    new-instance p0, Lcom/estrongs/fs/impl/local/e;

    invoke-direct {p0, v0, p1, p2}, Lcom/estrongs/fs/impl/local/e;-><init>(Ljava/io/File;J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    move-exception p0

    .line 179
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    const/4 v0, 0x0

    .line 2
    invoke-static {p0, p1, v0}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;Lcom/estrongs/fs/h;Lcom/estrongs/android/util/TypedMap;)Ljava/util/List;

    move-result-object p0

    return-object p0
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/h;Lcom/estrongs/android/util/TypedMap;)Ljava/util/List;
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            "Lcom/estrongs/android/util/TypedMap;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .line 3
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v0

    .line 4
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    .line 5
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object v1

    invoke-static {v1, v2}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/FexApplication;->n()Lcom/estrongs/android/pop/FexApplication;

    move-result-object p1

    invoke-static {p1}, Lcom/estrongs/fs/impl/local/l;->a(Landroid/content/Context;)Lcom/estrongs/fs/impl/local/l;

    move-result-object p1

    invoke-virtual {p1, p0}, Lcom/estrongs/fs/impl/local/l;->b(Ljava/lang/String;)Ljava/util/List;

    move-result-object p0

    return-object p0

    .line 7
    :cond_0
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 8
    invoke-virtual {v1}, Ljava/io/File;->exists()Z

    move-result p0

    const/4 v3, 0x0

    if-eqz p0, :cond_b

    invoke-virtual {v1}, Ljava/io/File;->isDirectory()Z

    move-result p0

    if-nez p0, :cond_1

    goto/16 :goto_4

    .line 9
    :cond_1
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object p0

    .line 10
    invoke-virtual {v1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v1

    const/4 v4, 0x1

    if-eqz p0, :cond_2

    if-eqz v1, :cond_2

    const/4 v5, 0x6

    new-array v6, v4, [Ljava/lang/Object;

    .line 11
    array-length v7, v1

    int-to-long v7, v7

    invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v7

    aput-object v7, v6, v2

    invoke-virtual {p0, v5, v6}, Les/s80;->b(I[Ljava/lang/Object;)V

    .line 12
    :cond_2
    new-instance v5, Ljava/util/LinkedList;

    invoke-direct {v5}, Ljava/util/LinkedList;-><init>()V

    if-nez v0, :cond_3

    .line 13
    invoke-static {}, Les/xj;->b()Landroid/net/LocalSocket;

    move-result-object v0

    goto :goto_0

    :cond_3
    move-object v0, v3

    :goto_0
    if-eqz v1, :cond_a

    if-eqz p2, :cond_4

    const-string v6, "countChildren"

    .line 14
    invoke-virtual {p2, v6}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_4

    invoke-virtual {p2, v6}, Lcom/estrongs/android/util/TypedMap;->getBoolean(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_4

    const/4 p2, 0x1

    goto :goto_1

    :cond_4
    const/4 p2, 0x0

    .line 15
    :goto_1
    array-length v6, v1

    const/4 v7, 0x0

    :goto_2
    if-ge v7, v6, :cond_9

    aget-object v8, v1, v7

    if-eqz p0, :cond_5

    .line 16
    invoke-virtual {p0}, Les/s80;->z()Z

    move-result v9

    if-eqz v9, :cond_5

    return-object v3

    :cond_5
    if-nez v8, :cond_6

    goto :goto_3

    :cond_6
    if-eqz p0, :cond_7

    const/4 v9, 0x7

    new-array v10, v4, [Ljava/lang/Object;

    const-wide/16 v11, 0x1

    .line 17
    invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v11

    aput-object v11, v10, v2

    invoke-virtual {p0, v9, v10}, Les/s80;->b(I[Ljava/lang/Object;)V

    .line 18
    :cond_7
    new-instance v9, Lcom/estrongs/fs/impl/local/d;

    invoke-direct {v9, v0, v8, p2}, Lcom/estrongs/fs/impl/local/d;-><init>(Landroid/net/LocalSocket;Ljava/io/File;Z)V

    .line 19
    invoke-interface {p1, v9}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v10

    if-eqz v10, :cond_8

    invoke-virtual {v8}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v8

    const-string v10, "PCS_DRIVE_Js1a7M5e_9yAcTvFX"

    invoke-virtual {v10, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v8

    if-nez v8, :cond_8

    .line 20
    invoke-interface {v5, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    if-eqz p0, :cond_8

    const/16 v8, 0xb

    new-array v10, v4, [Ljava/lang/Object;

    aput-object v9, v10, v2

    .line 21
    invoke-virtual {p0, v8, v10}, Les/s80;->b(I[Ljava/lang/Object;)V

    :cond_8
    :goto_3
    add-int/lit8 v7, v7, 0x1

    goto :goto_2

    :cond_9
    if-eqz v0, :cond_a

    .line 22
    :try_start_0
    invoke-virtual {v0}, Landroid/net/LocalSocket;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    :cond_a
    return-object v5

    :cond_b
    :goto_4
    return-object v3
.end method

.method public static a(Ljava/io/File;)V
    .locals 2

    const/4 v0, 0x0

    const/4 v1, 0x1

    .line 188
    invoke-virtual {p0, v1, v0}, Ljava/io/File;->setReadable(ZZ)Z

    .line 189
    invoke-virtual {p0, v1, v0}, Ljava/io/File;->setWritable(ZZ)Z

    .line 190
    invoke-virtual {p0, v1, v0}, Ljava/io/File;->setExecutable(ZZ)Z

    return-void
.end method

.method static synthetic a(Ljava/io/File;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V
    .locals 0

    .line 1
    invoke-static {p0, p1, p2, p3, p4}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/io/File;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V

    return-void
.end method

.method public static a(Ljava/lang/String;)V
    .locals 1

    .line 180
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 181
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/media/d;->e(Ljava/lang/String;)V
    :try_end_0
    .catch Lcom/estrongs/fs/impl/media/MediaStoreInsertException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 182
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    .line 183
    invoke-static {}, Lcom/estrongs/android/pop/utils/r;->b()V

    :cond_0
    :goto_0
    return-void
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/g;Z)V
    .locals 2

    .line 184
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 185
    invoke-static {v0, v1}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 186
    invoke-static {p0, p1, p2}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Lcom/estrongs/fs/g;Z)V

    return-void

    .line 187
    :cond_0
    new-instance p2, Ljava/io/File;

    invoke-direct {p2, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-interface {p1}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide p0

    invoke-virtual {p2, p0, p1}, Ljava/io/File;->setLastModified(J)Z

    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 3
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 50
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->Y1(Ljava/lang/String;)Z

    move-result v0

    .line 51
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v1

    if-nez v0, :cond_0

    const/4 v0, 0x0

    .line 52
    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result p0

    if-eqz p0, :cond_0

    .line 53
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/lang/String;)Z

    move-result p0

    return p0

    :cond_0
    const-string p0, "file:///"

    .line 54
    invoke-virtual {p1, p0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_1

    .line 55
    new-instance p0, Ljava/io/File;

    invoke-static {p1}, Ljava/net/URI;->create(Ljava/lang/String;)Ljava/net/URI;

    move-result-object p1

    invoke-direct {p0, p1}, Ljava/io/File;-><init>(Ljava/net/URI;)V

    .line 56
    invoke-virtual {p0}, Ljava/io/File;->delete()Z

    const/4 p0, 0x1

    return p0

    .line 57
    :cond_1
    new-instance p0, Ljava/io/File;

    invoke-direct {p0, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 58
    new-instance p1, Ljava/util/ArrayList;

    invoke-direct {p1}, Ljava/util/ArrayList;-><init>()V

    .line 59
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 60
    invoke-static {p0, p1, v0}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/io/File;Ljava/util/List;Ljava/util/List;)Z

    move-result p0

    .line 61
    instance-of v2, v1, Les/c70;

    if-eqz v2, :cond_2

    .line 62
    check-cast v1, Les/c70;

    iget-object v2, v1, Les/c70;->I:Ljava/util/List;

    invoke-interface {v2, p1}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 63
    iget-object p1, v1, Les/c70;->H:Ljava/util/List;

    invoke-interface {p1, v0}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    :cond_2
    return p0
.end method

.method private static a(Ljava/io/File;Ljava/util/List;Ljava/util/List;)Z
    .locals 17
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/File;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)Z"
        }
    .end annotation

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object/from16 v2, p2

    .line 64
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v3

    const/4 v4, 0x0

    if-eqz v3, :cond_0

    .line 65
    invoke-virtual {v3}, Les/s80;->z()Z

    move-result v5

    if-eqz v5, :cond_0

    return v4

    .line 66
    :cond_0
    instance-of v5, v3, Les/c70;

    const/4 v6, 0x1

    if-eqz v5, :cond_1

    .line 67
    move-object v7, v3

    check-cast v7, Les/c70;

    iget-object v7, v7, Les/c70;->K:Ljava/util/List;

    if-eqz v7, :cond_1

    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v8

    invoke-interface {v7, v8}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_1

    return v6

    :cond_1
    if-eqz v3, :cond_2

    .line 68
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v8

    goto :goto_0

    :cond_2
    const/4 v8, 0x0

    .line 69
    :goto_0
    invoke-static/range {p0 .. p0}, Lcom/estrongs/android/util/h0;->a(Ljava/io/File;)Z

    move-result v9

    if-eqz v9, :cond_3

    .line 70
    :try_start_0
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Les/xj;->a(Ljava/lang/String;)Z

    move-result v1
    :try_end_0
    .catch Lcom/estrongs/fs/impl/local/NativeException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    const/4 v1, 0x0

    :goto_1
    const-wide/16 v6, 0x0

    goto/16 :goto_c

    .line 71
    :cond_3
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->isDirectory()Z

    move-result v9

    const/16 v13, 0x12

    const/16 v14, 0x15

    if-eqz v9, :cond_12

    if-eqz v5, :cond_6

    .line 72
    move-object v15, v3

    check-cast v15, Les/c70;

    invoke-virtual {v15}, Les/c70;->D()Z

    move-result v16

    if-eqz v16, :cond_6

    .line 73
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_4

    .line 74
    invoke-virtual {v15, v0}, Les/c70;->b(Ljava/io/File;)Z

    move-result v2

    goto :goto_2

    :cond_4
    const/4 v2, 0x1

    :goto_2
    if-eqz v2, :cond_5

    if-eqz v1, :cond_5

    .line 75
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v15, v1}, Les/c70;->b(Ljava/lang/String;)V

    :cond_5
    :goto_3
    move v1, v2

    goto :goto_1

    .line 76
    :cond_6
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v15

    if-eqz v15, :cond_8

    .line 77
    new-instance v10, Ljava/util/ArrayList;

    invoke-direct {v10}, Ljava/util/ArrayList;-><init>()V

    .line 78
    new-instance v11, Ljava/util/ArrayList;

    invoke-direct {v11}, Ljava/util/ArrayList;-><init>()V

    .line 79
    array-length v7, v15

    const/4 v12, 0x0

    :goto_4
    if-ge v12, v7, :cond_8

    aget-object v6, v15, v12

    .line 80
    invoke-static {v6, v10, v11}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/io/File;Ljava/util/List;Ljava/util/List;)Z

    move-result v6

    if-nez v6, :cond_7

    .line 81
    invoke-interface {v1, v10}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    .line 82
    invoke-interface {v2, v11}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z

    return v4

    :cond_7
    add-int/lit8 v12, v12, 0x1

    const/4 v6, 0x1

    goto :goto_4

    .line 83
    :cond_8
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->exists()Z

    move-result v2

    if-eqz v2, :cond_a

    if-eqz v5, :cond_9

    .line 84
    move-object v2, v3

    check-cast v2, Les/c70;

    invoke-virtual {v2, v0}, Les/c70;->b(Ljava/io/File;)Z

    move-result v2

    goto :goto_5

    .line 85
    :cond_9
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->delete()Z

    move-result v2

    goto :goto_5

    :cond_a
    const/4 v2, 0x1

    :goto_5
    if-eqz v2, :cond_c

    .line 86
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_c

    if-eqz v5, :cond_b

    .line 87
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v1, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_6

    .line 88
    :cond_b
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;)V

    :cond_c
    :goto_6
    if-nez v2, :cond_5

    .line 89
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/estrongs/android/util/h0;->c1(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 90
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v2

    if-lt v2, v14, :cond_e

    .line 91
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2, v9}, Lcom/estrongs/fs/impl/local/a;->c(Ljava/lang/String;Z)Z

    move-result v2

    if-eqz v2, :cond_f

    if-eqz v5, :cond_d

    .line 92
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v1, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_7

    .line 93
    :cond_d
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-static {v6}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;)V

    goto :goto_7

    .line 94
    :cond_e
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2, v9}, Lcom/estrongs/fs/impl/local/g;->b(Ljava/lang/String;Z)Z

    move-result v2

    :cond_f
    :goto_7
    if-nez v2, :cond_5

    .line 95
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v6

    if-lt v6, v13, :cond_5

    const/4 v6, 0x1

    .line 96
    invoke-static {v6}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result v7

    if-eqz v7, :cond_11

    .line 97
    :try_start_1
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/lang/String;)Z

    move-result v2
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    if-eqz v2, :cond_5

    if-eqz v5, :cond_10

    .line 98
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-interface {v1, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto/16 :goto_3

    .line 99
    :cond_10
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;)V

    goto/16 :goto_3

    :catch_1
    return v4

    :cond_11
    if-eqz v3, :cond_5

    const/16 v1, 0x11

    const/4 v6, 0x0

    .line 100
    invoke-virtual {v3, v1, v6}, Les/s80;->b(ILjava/lang/Object;)V

    goto/16 :goto_3

    :cond_12
    if-eqz v5, :cond_13

    .line 101
    move-object v1, v3

    check-cast v1, Les/c70;

    invoke-virtual {v1, v0}, Les/c70;->a(Ljava/io/File;)Z

    move-result v1

    if-eqz v1, :cond_13

    const/4 v1, 0x1

    return v1

    :cond_13
    if-eqz v3, :cond_14

    .line 102
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->length()J

    move-result-wide v6

    goto :goto_8

    :cond_14
    const-wide/16 v6, 0x0

    .line 103
    :goto_8
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_16

    if-eqz v5, :cond_15

    .line 104
    move-object v1, v3

    check-cast v1, Les/c70;

    invoke-virtual {v1, v0}, Les/c70;->b(Ljava/io/File;)Z

    move-result v1

    goto :goto_9

    .line 105
    :cond_15
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->delete()Z

    move-result v1

    goto :goto_9

    :cond_16
    const/4 v1, 0x1

    :goto_9
    if-eqz v1, :cond_18

    .line 106
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_18

    if-eqz v5, :cond_17

    .line 107
    move-object v10, v3

    check-cast v10, Les/c70;

    iget v11, v10, Les/c70;->J:I

    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v12

    invoke-static {v12}, Les/o10;->a(Ljava/lang/String;)I

    move-result v12

    or-int/2addr v11, v12

    iput v11, v10, Les/c70;->J:I

    .line 108
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v10

    invoke-interface {v2, v10}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_a

    .line 109
    :cond_17
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;)V

    :cond_18
    :goto_a
    if-nez v1, :cond_1e

    .line 110
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v10

    invoke-static {v10}, Lcom/estrongs/android/util/h0;->c1(Ljava/lang/String;)Z

    move-result v10

    if-eqz v10, :cond_1e

    .line 111
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v1

    if-lt v1, v14, :cond_1a

    .line 112
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v9}, Lcom/estrongs/fs/impl/local/a;->c(Ljava/lang/String;Z)Z

    move-result v1

    if-eqz v1, :cond_1b

    if-eqz v5, :cond_19

    .line 113
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v9

    invoke-interface {v2, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_b

    .line 114
    :cond_19
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v9

    invoke-static {v9}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;)V

    goto :goto_b

    .line 115
    :cond_1a
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1, v9}, Lcom/estrongs/fs/impl/local/g;->b(Ljava/lang/String;Z)Z

    move-result v1

    :cond_1b
    :goto_b
    if-nez v1, :cond_1e

    .line 116
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v9

    if-lt v9, v13, :cond_1e

    const/4 v9, 0x1

    .line 117
    invoke-static {v9}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result v10

    if-eqz v10, :cond_1d

    .line 118
    :try_start_2
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/fs/impl/local/j;->b(Ljava/lang/String;)Z

    move-result v1
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    if-eqz v1, :cond_1e

    if-eqz v5, :cond_1c

    .line 119
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v9

    invoke-interface {v2, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_c

    .line 120
    :cond_1c
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;)V

    goto :goto_c

    :catch_2
    return v4

    :cond_1d
    if-eqz v3, :cond_1e

    const/16 v2, 0x11

    const/4 v9, 0x0

    .line 121
    invoke-virtual {v3, v2, v9}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_1e
    :goto_c
    if-eqz v1, :cond_20

    if-eqz v5, :cond_1f

    const/4 v0, 0x2

    new-array v2, v0, [Ljava/lang/Object;

    const-wide/16 v9, 0x1

    .line 122
    invoke-static {v9, v10}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    aput-object v5, v2, v4

    const/4 v5, 0x1

    aput-object v8, v2, v5

    invoke-virtual {v3, v5, v2}, Les/s80;->b(I[Ljava/lang/Object;)V

    const-wide/16 v9, 0x0

    cmp-long v2, v6, v9

    if-lez v2, :cond_1f

    new-array v2, v0, [Ljava/lang/Object;

    .line 123
    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v6

    aput-object v6, v2, v4

    aput-object v8, v2, v5

    invoke-virtual {v3, v0, v2}, Les/s80;->b(I[Ljava/lang/Object;)V

    :cond_1f
    move v4, v1

    goto :goto_d

    .line 124
    :cond_20
    :try_start_3
    invoke-virtual/range {p0 .. p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Les/xj;->a(Ljava/lang/String;)Z

    move-result v4
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3

    :catch_3
    :goto_d
    return v4
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 8

    .line 125
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    if-eqz v0, :cond_0

    .line 126
    invoke-static {v1, v2}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 127
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/j;->c(Ljava/lang/String;Ljava/lang/String;)Z

    move-result p0

    return p0

    .line 128
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 129
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_1

    return v2

    .line 130
    :cond_1
    new-instance v3, Ljava/io/File;

    invoke-direct {v3, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 131
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v4

    const/4 v5, 0x1

    if-eqz v4, :cond_4

    .line 132
    invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_3

    invoke-virtual {p1, p0}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_3

    .line 133
    new-instance v4, Ljava/io/File;

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v6, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v7, Lcom/estrongs/fs/impl/local/f;->a:Ljava/util/Random;

    invoke-virtual {v7}, Ljava/util/Random;->nextInt()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-direct {v4, v6}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 134
    invoke-virtual {v0, v4}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {v4, v3}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    goto :goto_0

    :cond_2
    const/4 v0, 0x0

    goto :goto_0

    :cond_3
    return v2

    .line 135
    :cond_4
    invoke-virtual {v0, v3}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v0

    :goto_0
    if-nez v0, :cond_7

    .line 136
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v4

    const/16 v6, 0x12

    if-lt v4, v6, :cond_7

    .line 137
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c1(Ljava/lang/String;)Z

    move-result v4

    if-eqz v4, :cond_5

    .line 138
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v6

    const/16 v7, 0x15

    if-lt v6, v7, :cond_5

    .line 139
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/a;->a(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0

    :cond_5
    if-nez v0, :cond_6

    .line 140
    invoke-static {v5}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result v5

    if-eqz v5, :cond_6

    .line 141
    :try_start_0
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/j;->c(Ljava/lang/String;Ljava/lang/String;)Z

    move-result v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    return v2

    :cond_6
    if-nez v0, :cond_7

    if-eqz v4, :cond_7

    .line 142
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v2

    if-eqz v2, :cond_7

    const/16 v4, 0x11

    .line 143
    invoke-virtual {v2, v4, v1}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_7
    :goto_1
    if-eqz v0, :cond_9

    .line 144
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_9

    .line 145
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v1

    .line 146
    instance-of v2, v1, Les/k70;

    if-nez v2, :cond_9

    instance-of v2, v1, Les/x60;

    if-nez v2, :cond_9

    instance-of v1, v1, Les/i70;

    if-nez v1, :cond_9

    .line 147
    invoke-virtual {v3}, Ljava/io/File;->isDirectory()Z

    move-result v1

    if-eqz v1, :cond_8

    .line 148
    new-instance v1, Lcom/estrongs/fs/impl/local/f$a;

    invoke-direct {v1, p0, p1}, Lcom/estrongs/fs/impl/local/f$a;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 149
    invoke-virtual {v1}, Ljava/lang/Thread;->start()V

    goto :goto_2

    .line 150
    :cond_8
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;Ljava/lang/String;)V

    :cond_9
    :goto_2
    return v0
.end method

.method public static a(Ljava/lang/String;Z)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x1

    .line 23
    invoke-static {p0, p1, v0}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;ZZ)Z

    move-result p0

    return p0
.end method

.method public static a(Ljava/lang/String;ZZ)Z
    .locals 7
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 24
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    if-eqz v0, :cond_0

    .line 25
    invoke-static {v1, v2}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 26
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Z)Z

    move-result p0

    return p0

    .line 27
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    if-eqz p1, :cond_1

    .line 28
    :try_start_0
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_2

    .line 29
    invoke-virtual {v0}, Ljava/io/File;->mkdir()Z

    move-result v3

    goto :goto_0

    .line 30
    :cond_1
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_2

    .line 31
    invoke-virtual {v0}, Ljava/io/File;->createNewFile()Z

    move-result v3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1

    goto :goto_0

    :cond_2
    const/4 v3, 0x0

    .line 32
    :goto_0
    :try_start_1
    sget-boolean v4, Lcom/estrongs/android/pop/j;->X:Z

    if-eqz v4, :cond_3

    .line 33
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/io/File;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    goto :goto_1

    :catch_1
    move-exception v0

    const/4 v3, 0x0

    .line 34
    :goto_1
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    :cond_3
    :goto_2
    if-nez v3, :cond_8

    .line 35
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 36
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v0

    const/16 v3, 0x15

    const/4 v4, 0x1

    if-lt v0, v3, :cond_5

    .line 37
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/a;->b(Ljava/lang/String;Z)Landroid/net/Uri;

    move-result-object v0

    if-eqz v0, :cond_4

    const/4 v3, 0x1

    goto :goto_3

    :cond_4
    const/4 v3, 0x0

    :goto_3
    if-eqz v3, :cond_6

    .line 38
    new-instance v5, Ljava/io/File;

    new-instance v6, Ljava/io/File;

    invoke-direct {v6, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object p0

    invoke-virtual {v0}, Landroid/net/Uri;->getPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-direct {v5, p0, v0}, Ljava/io/File;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {v5}, Ljava/io/File;->getPath()Ljava/lang/String;

    move-result-object p0

    goto :goto_4

    .line 39
    :cond_5
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/g;->a(Ljava/lang/String;Z)Z

    move-result v0

    move v3, v0

    :cond_6
    :goto_4
    if-nez v3, :cond_8

    .line 40
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v0

    const/16 v5, 0x12

    if-lt v0, v5, :cond_8

    .line 41
    invoke-static {v4}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 42
    :try_start_2
    invoke-static {p0, p1}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Z)Z

    move-result v3
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_2

    goto :goto_5

    :catch_2
    move-exception p0

    .line 43
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    return v2

    .line 44
    :cond_7
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object p1

    if-eqz p1, :cond_8

    const/16 v0, 0x11

    .line 45
    invoke-virtual {p1, v0, v1}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_8
    :goto_5
    if-eqz p2, :cond_9

    if-eqz v3, :cond_9

    .line 46
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_9

    .line 47
    :try_start_3
    invoke-static {p0}, Lcom/estrongs/fs/impl/media/d;->e(Ljava/lang/String;)V
    :try_end_3
    .catch Lcom/estrongs/fs/impl/media/MediaStoreInsertException; {:try_start_3 .. :try_end_3} :catch_3

    goto :goto_6

    :catch_3
    move-exception p0

    .line 48
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    .line 49
    invoke-static {}, Lcom/estrongs/android/pop/utils/r;->b()V

    :cond_9
    :goto_6
    return v3
.end method

.method public static b(Landroid/content/Context;Ljava/lang/String;)Ljava/io/InputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 6
    invoke-static {p0, p1, v0}, Lcom/estrongs/fs/impl/local/f;->a(Landroid/content/Context;Ljava/lang/String;Z)Ljava/io/InputStream;

    move-result-object p0

    return-object p0
.end method

.method public static b(Ljava/lang/String;Z)Ljava/io/OutputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x1

    .line 7
    invoke-static {p0, p1, v0}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;ZZ)Ljava/io/OutputStream;

    move-result-object p0

    return-object p0
.end method

.method public static b(Ljava/lang/String;ZZ)Ljava/io/OutputStream;
    .locals 4
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    const/4 v1, 0x0

    if-nez p1, :cond_1

    .line 8
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 9
    invoke-static {v1, v0}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result p1

    if-eqz p1, :cond_1

    .line 10
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->f(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p1

    if-eqz p1, :cond_0

    goto/16 :goto_2

    .line 11
    :cond_0
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    const-string v2, "Permission denied"

    invoke-direct {p1, v2}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/String;)V

    throw p1

    :cond_1
    const-string p1, "file://"

    .line 12
    invoke-virtual {p0, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_2

    .line 13
    new-instance p1, Ljava/io/File;

    new-instance v2, Ljava/net/URI;

    invoke-direct {v2, p0}, Ljava/net/URI;-><init>(Ljava/lang/String;)V

    invoke-direct {p1, v2}, Ljava/io/File;-><init>(Ljava/net/URI;)V

    .line 14
    new-instance v2, Ljava/io/FileOutputStream;

    invoke-direct {v2, p1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    goto :goto_0

    .line 15
    :cond_2
    new-instance p1, Ljava/io/File;

    invoke-direct {p1, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 16
    new-instance v2, Ljava/io/FileOutputStream;

    invoke-direct {v2, p0}, Ljava/io/FileOutputStream;-><init>(Ljava/lang/String;)V

    .line 17
    :goto_0
    sget-boolean v3, Lcom/estrongs/android/pop/j;->X:Z

    if-eqz v3, :cond_3

    .line 18
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/io/File;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_3
    move-object p1, v2

    goto :goto_2

    :catch_0
    move-exception p1

    if-eqz p2, :cond_8

    .line 19
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c1(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_8

    .line 20
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result p1

    const/16 p2, 0x15

    if-lt p1, p2, :cond_4

    .line 21
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/a;->a(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 22
    sget v0, Landroid/os/Build$VERSION;->SDK_INT:I

    if-lt v0, p2, :cond_5

    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object p2

    instance-of p2, p2, Les/z60;

    if-eqz p2, :cond_5

    .line 23
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object p2

    check-cast p2, Les/z60;

    iget-object p2, p2, Les/z60;->Q:Ljava/util/List;

    invoke-interface {p2, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_1

    .line 24
    :cond_4
    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/local/g;->c(Ljava/lang/String;Z)Ljava/io/OutputStream;

    move-result-object p1

    :cond_5
    :goto_1
    if-nez p1, :cond_7

    .line 25
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result p2

    const/16 v0, 0x12

    if-lt p2, v0, :cond_7

    const/4 p2, 0x1

    .line 26
    invoke-static {p2}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result p2

    if-eqz p2, :cond_6

    .line 27
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->f(Ljava/lang/String;)Ljava/io/OutputStream;

    move-result-object p0

    return-object p0

    .line 28
    :cond_6
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object p0

    if-eqz p0, :cond_7

    const/16 p2, 0x11

    .line 29
    invoke-virtual {p0, p2, v1}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_7
    :goto_2
    return-object p1

    .line 30
    :cond_8
    new-instance p0, Lcom/estrongs/fs/FileSystemException;

    invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object p1

    invoke-direct {p0, p1}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/String;)V

    throw p0
.end method

.method private static b(Ljava/io/File;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/io/File;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;",
            "Ljava/util/List<",
            "Ljava/lang/String;",
            ">;)V"
        }
    .end annotation

    .line 1
    invoke-virtual {p0}, Ljava/io/File;->isDirectory()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    invoke-virtual {p0}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object p0

    if-eqz p0, :cond_1

    .line 3
    array-length v0, p0

    const/4 v1, 0x0

    :goto_0
    if-ge v1, v0, :cond_1

    aget-object v2, p0, v1

    .line 4
    invoke-static {v2, p1, p2, p3, p4}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/io/File;Ljava/util/List;Ljava/util/List;Ljava/util/List;Ljava/util/List;)V

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    .line 5
    :cond_0
    invoke-virtual {p0}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object p0

    invoke-interface {p4, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_1
    return-void
.end method

.method public static b(Ljava/lang/String;)V
    .locals 1

    .line 33
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 34
    invoke-static {p0}, Lcom/estrongs/fs/impl/media/d;->f(Ljava/lang/String;)I

    :cond_0
    return-void
.end method

.method private static b(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0

    .line 31
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;)V

    .line 32
    invoke-static {p1}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/lang/String;)V

    return-void
.end method

.method public static c(Ljava/lang/String;)Z
    .locals 2

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    const/4 v1, 0x0

    .line 2
    invoke-static {v1, v0}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    invoke-static {v1}, Lcom/estrongs/fs/impl/local/l;->a(Landroid/content/Context;)Lcom/estrongs/fs/impl/local/l;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/estrongs/fs/impl/local/l;->a(Ljava/lang/String;)Z

    move-result p0

    return p0

    .line 4
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result p0

    return p0
.end method

.method public static d(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 6

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->h(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object v0

    const/4 v1, 0x0

    if-nez v0, :cond_0

    return-object v1

    .line 2
    :cond_0
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v2

    .line 3
    iget-boolean v3, v0, Lcom/estrongs/fs/e;->c:Z

    if-eqz v3, :cond_3

    const/4 v3, 0x0

    invoke-static {v1, v3}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v1

    if-nez v1, :cond_3

    const-string v1, "Folder"

    .line 4
    iput-object v1, v0, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 5
    new-instance v1, Ljava/io/File;

    invoke-direct {v1, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 6
    invoke-virtual {v1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object p0

    if-eqz p0, :cond_3

    .line 7
    array-length v1, p0

    :goto_0
    if-ge v3, v1, :cond_3

    aget-object v4, p0, v3

    if-eqz v2, :cond_1

    .line 8
    invoke-virtual {v2}, Les/s80;->z()Z

    move-result v5

    if-eqz v5, :cond_1

    return-object v0

    .line 9
    :cond_1
    invoke-virtual {v4}, Ljava/io/File;->isDirectory()Z

    move-result v4

    if-eqz v4, :cond_2

    .line 10
    iget v4, v0, Lcom/estrongs/fs/e;->e:I

    add-int/lit8 v4, v4, 0x1

    iput v4, v0, Lcom/estrongs/fs/e;->e:I

    goto :goto_1

    .line 11
    :cond_2
    iget v4, v0, Lcom/estrongs/fs/e;->f:I

    add-int/lit8 v4, v4, 0x1

    iput v4, v0, Lcom/estrongs/fs/e;->f:I

    :goto_1
    add-int/lit8 v3, v3, 0x1

    goto :goto_0

    :cond_3
    return-object v0
.end method

.method public static e(Ljava/lang/String;)J
    .locals 4

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v0

    const-wide/16 v1, -0x1

    if-eqz v0, :cond_1

    const/4 v0, 0x0

    const/4 v3, 0x0

    .line 2
    invoke-static {v0, v3}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 3
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 4
    iget-boolean p0, v0, Lcom/estrongs/fs/e;->c:Z

    if-eqz p0, :cond_0

    return-wide v1

    .line 5
    :cond_0
    iget-wide v0, v0, Lcom/estrongs/fs/e;->d:J

    return-wide v0

    .line 6
    :cond_1
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 7
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result p0

    if-eqz p0, :cond_2

    invoke-virtual {v0}, Ljava/io/File;->isFile()Z

    move-result p0

    if-eqz p0, :cond_2

    .line 8
    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v0

    return-wide v0

    :cond_2
    return-wide v1
.end method

.method public static f(Ljava/lang/String;)Lcom/estrongs/fs/impl/local/d;
    .locals 1

    const-string v0, "file:///"

    .line 1
    invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    new-instance v0, Ljava/io/File;

    invoke-static {p0}, Ljava/net/URI;->create(Ljava/lang/String;)Ljava/net/URI;

    move-result-object p0

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/net/URI;)V

    goto :goto_0

    .line 3
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 4
    :goto_0
    new-instance p0, Lcom/estrongs/fs/impl/local/d;

    invoke-direct {p0, v0}, Lcom/estrongs/fs/impl/local/d;-><init>(Ljava/io/File;)V

    return-object p0
.end method

.method public static g(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x0

    .line 1
    invoke-static {p0, v0}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;Z)Ljava/io/OutputStream;

    move-result-object p0

    return-object p0
.end method

.method public static h(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 5

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v0

    const-string v1, "File"

    const/4 v2, 0x0

    if-eqz v0, :cond_2

    const/4 v0, 0x0

    invoke-static {v2, v0}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v3

    if-eqz v3, :cond_2

    .line 2
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object v3

    if-eqz v3, :cond_2

    .line 3
    iget-boolean p0, v3, Lcom/estrongs/fs/e;->c:Z

    if-eqz p0, :cond_0

    const-string p0, "Folder"

    .line 4
    iput-object p0, v3, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    goto :goto_0

    .line 5
    :cond_0
    iput-object v1, v3, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 6
    :goto_0
    iget-object p0, v3, Lcom/estrongs/fs/e;->n:Ljava/lang/String;

    const-string v1, "."

    invoke-virtual {p0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_1

    const/4 p0, 0x1

    .line 7
    iput-boolean p0, v3, Lcom/estrongs/fs/e;->l:Z

    goto :goto_1

    .line 8
    :cond_1
    iput-boolean v0, v3, Lcom/estrongs/fs/e;->l:Z

    :goto_1
    return-object v3

    .line 9
    :cond_2
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 10
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v3

    if-nez v3, :cond_3

    return-object v2

    .line 11
    :cond_3
    new-instance v2, Lcom/estrongs/fs/e;

    invoke-direct {v2, p0}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    .line 12
    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result p0

    iput-boolean p0, v2, Lcom/estrongs/fs/e;->c:Z

    .line 13
    iput-object v1, v2, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 14
    invoke-virtual {v0}, Ljava/io/File;->length()J

    move-result-wide v3

    iput-wide v3, v2, Lcom/estrongs/fs/e;->d:J

    .line 15
    invoke-virtual {v0}, Ljava/io/File;->lastModified()J

    move-result-wide v3

    iput-wide v3, v2, Lcom/estrongs/fs/e;->i:J

    .line 16
    invoke-virtual {v0}, Ljava/io/File;->canRead()Z

    move-result p0

    iput-boolean p0, v2, Lcom/estrongs/fs/e;->j:Z

    .line 17
    invoke-virtual {v0}, Ljava/io/File;->canWrite()Z

    move-result p0

    iput-boolean p0, v2, Lcom/estrongs/fs/e;->k:Z

    .line 18
    invoke-virtual {v0}, Ljava/io/File;->isHidden()Z

    move-result p0

    iput-boolean p0, v2, Lcom/estrongs/fs/e;->l:Z

    return-object v2
.end method

.method public static i(Ljava/lang/String;)Z
    .locals 2

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    invoke-static {v0, v1}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/j;->d(Ljava/lang/String;)Lcom/estrongs/fs/e;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 3
    iget-boolean p0, v0, Lcom/estrongs/fs/e;->c:Z

    return p0

    .line 4
    :cond_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 5
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result p0

    if-nez p0, :cond_1

    return v1

    .line 6
    :cond_1
    invoke-virtual {v0}, Ljava/io/File;->isDirectory()Z

    move-result p0

    return p0
.end method

.method private static j(Ljava/lang/String;)Z
    .locals 3

    .line 1
    invoke-static {}, Lcom/estrongs/android/util/h0;->o()Ljava/lang/String;

    move-result-object v0

    .line 2
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->X1(Ljava/lang/String;)Z

    move-result v1

    const/4 v2, 0x0

    if-eqz v1, :cond_0

    return v2

    :cond_0
    if-eqz v0, :cond_1

    .line 3
    invoke-virtual {p0, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_1

    return v2

    :cond_1
    const/4 p0, 0x1

    return p0
.end method

.method public static k(Ljava/lang/String;)Z
    .locals 5

    const/4 v0, 0x0

    .line 1
    :try_start_0
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->B(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    if-nez p0, :cond_0

    return v0

    .line 2
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/c;->b()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    const/4 v2, 0x1

    if-eqz v1, :cond_1

    return v2

    .line 3
    :cond_1
    sget-object v1, Lcom/estrongs/fs/impl/local/f;->b:Ljava/util/Map;

    invoke-interface {v1, p0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 4
    sget-object v1, Lcom/estrongs/fs/impl/local/f;->b:Ljava/util/Map;

    invoke-interface {v1, p0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/Boolean;

    invoke-virtual {p0}, Ljava/lang/Boolean;->booleanValue()Z

    move-result p0

    return p0

    .line 5
    :cond_2
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "/."

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-virtual {v1, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 6
    invoke-static {v1, v0, v0}, Lcom/estrongs/fs/impl/local/f;->b(Ljava/lang/String;ZZ)Ljava/io/OutputStream;

    move-result-object v3
    :try_end_0
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_1

    if-eqz v3, :cond_3

    .line 7
    :try_start_1
    invoke-virtual {v3}, Ljava/io/OutputStream;->close()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :cond_3
    const/4 v2, 0x0

    .line 8
    :catch_0
    :goto_0
    :try_start_2
    sget-object v3, Lcom/estrongs/fs/impl/local/f;->b:Ljava/util/Map;

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v4

    invoke-interface {v3, p0, v4}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 9
    new-instance p0, Ljava/io/File;

    invoke-direct {p0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Ljava/io/File;->exists()Z

    move-result p0

    if-eqz p0, :cond_4

    .line 10
    new-instance p0, Ljava/io/File;

    invoke-direct {p0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Ljava/io/File;->delete()Z
    :try_end_2
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_2 .. :try_end_2} :catch_1

    :cond_4
    return v2

    :catch_1
    return v0
.end method

.method public static l(Ljava/lang/String;)Z
    .locals 6

    .line 1
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/f;->j(Ljava/lang/String;)Z

    move-result v0

    const/4 v1, 0x0

    const/4 v2, 0x0

    const/4 v3, 0x1

    if-eqz v0, :cond_4

    invoke-static {v1, v2}, Lcom/estrongs/fs/impl/local/j;->a(Landroid/content/Context;Z)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 2
    :try_start_0
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 3
    invoke-virtual {v0}, Ljava/io/File;->getCanonicalPath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result v1
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_2
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_0 .. :try_end_0} :catch_1

    if-eqz v1, :cond_0

    return v3

    .line 4
    :cond_0
    :try_start_1
    invoke-static {p0, v3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Z)Z

    move-result v1
    :try_end_1
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_1 .. :try_end_1} :catch_0
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2

    if-eqz v1, :cond_1

    return v3

    .line 5
    :catch_0
    :cond_1
    :try_start_2
    invoke-virtual {v0}, Ljava/io/File;->getCanonicalFile()Ljava/io/File;

    move-result-object v0

    .line 6
    invoke-virtual {v0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 7
    invoke-virtual {v0}, Ljava/io/File;->getCanonicalPath()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Lcom/estrongs/fs/impl/local/f;->l(Ljava/lang/String;)Z

    move-result v1

    if-nez v1, :cond_2

    invoke-virtual {v0}, Ljava/io/File;->getCanonicalPath()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/fs/impl/local/f;->c(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 8
    :cond_2
    invoke-static {p0, v3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Z)Z

    move-result p0
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_2
    .catch Lcom/estrongs/fs/FileSystemException; {:try_start_2 .. :try_end_2} :catch_1

    if-eqz p0, :cond_3

    const/4 v2, 0x1

    :cond_3
    return v2

    :catch_1
    move-exception p0

    .line 9
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    return v2

    :catch_2
    move-exception p0

    .line 10
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    return v2

    .line 11
    :cond_4
    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 12
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v4

    if-nez v4, :cond_5

    .line 13
    invoke-virtual {v0}, Ljava/io/File;->mkdirs()Z

    move-result v4

    goto :goto_0

    :cond_5
    const/4 v4, 0x1

    .line 14
    :goto_0
    sget-boolean v5, Lcom/estrongs/android/pop/j;->X:Z

    if-eqz v5, :cond_6

    .line 15
    invoke-static {v0}, Lcom/estrongs/fs/impl/local/f;->a(Ljava/io/File;)V

    :cond_6
    if-nez v4, :cond_9

    .line 16
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->c1(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 17
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v0

    const/16 v4, 0x15

    if-lt v0, v4, :cond_7

    .line 18
    invoke-static {p0}, Lcom/estrongs/fs/impl/local/a;->d(Ljava/lang/String;)Z

    move-result v0

    goto :goto_1

    .line 19
    :cond_7
    invoke-static {p0, v3}, Lcom/estrongs/fs/impl/local/g;->a(Ljava/lang/String;Z)Z

    move-result v0

    :goto_1
    move v4, v0

    if-nez v4, :cond_9

    .line 20
    invoke-static {}, Lcom/estrongs/android/pop/k;->b()I

    move-result v0

    const/16 v5, 0x12

    if-lt v0, v5, :cond_9

    .line 21
    invoke-static {v3}, Lcom/estrongs/fs/impl/local/j;->e(Z)Z

    move-result v0

    if-eqz v0, :cond_8

    .line 22
    :try_start_3
    invoke-static {p0, v3}, Lcom/estrongs/fs/impl/local/j;->a(Ljava/lang/String;Z)Z

    move-result v4
    :try_end_3
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_3

    goto :goto_2

    :catch_3
    return v2

    .line 23
    :cond_8
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object p0

    if-eqz p0, :cond_9

    const/16 v0, 0x11

    .line 24
    invoke-virtual {p0, v0, v1}, Les/s80;->b(ILjava/lang/Object;)V

    :cond_9
    :goto_2
    return v4
.end method
